package org.lili.nestedfunction;

import org.lili.semanticmodel.Graph;

import static org.lili.nestedfunction.NestedEdgeBuilder.edge;
import static org.lili.nestedfunction.NestedEdgeBuilder.weight;
import static org.lili.nestedfunction.NestedGraphBuilder.Graph;
import static org.lili.nestedfunction.NestedVertexBuilder.from;
import static org.lili.nestedfunction.NestedVertexBuilder.to;

/**
 * @author lili
 * @description ${DESCRIPTION}
 * @create 2018-04-22 下午3:47
 * @since
 **/
public class NestedGraphDsl {

    public static void main(String[] args) {
        Graph.printGraph(
                Graph(edge(from("a"), to("b"), weight(23.4)),
                        edge(from("b"), to("c"), weight(56.7)),
                        edge(from("d"), to("e"), weight(10.4)),
                        edge(from("e"), to("a"), weight(45.9))
                )
        );

    }
}

